<!doctype html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>约会</title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/style.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/css.css"/>
    <style>
        [v-cloak] {
            display: none;
        }

        .yuehui {

        }

        .yuehuiitem {
            width: 100%;
            height: 100px;
            border-bottom: 1px solid #f8f8f8;
            display: flex;
            justify-content: space-between;
            align-items: center;

        }

        .yuehuiiteml {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 100px;
            margin-left: 10px;
        }

        .yuehuiiteml img {
            width: 70px;
            height: 70px;
        }

        .yuehuiiteml_right {
            width: 200px;
            height: 70px;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            flex-direction: column;
            margin-left: 20px;

        }

        .yuehuiiteml_right .title {
            color: #333333;
            font-size: 16px;

        }

        .yuehuiiteml_right .desc {
            color: #9e9e9e;
            font-size: 14px;

        }

        .yuehuiitemr {
            margin-right: 10px;
            height: 70px;
            display: flex;
            justify-content: flex-end;
            align-items: flex-start;
            color: #a4a4a4;
            font-size: 14px;
        }

        .yuehuimessage {
            width: 84%;
            height: 180px;
            background: rgba(255, 255, 255, 1);
            border-radius: 15px;
            position: fixed;
            top: 30%;
            left: 8%;
        }

        .yuehuimessage .icon {
            position: absolute;
            right: 10px;
            top: 10px;
        }

        .button_yes {
            width: 110px;
            height: 40px;
            background: linear-gradient(-59deg, rgba(109, 67, 229, 1), rgba(169, 93, 254, 1));
            box-shadow: 0px 10px 10px 0px rgba(7, 108, 224, 0.1);
            border-radius: 20px;
        }

        .button_no {
            width: 110px;
            height: 40px;
            background: rgba(204, 204, 204, 1);
            border-radius: 20px;
        }

        .yuehuimessage .title {
            font-size: 13px;
            font-family: Adobe Heiti Std R;
            font-weight: bold;
            color: rgba(34, 34, 34, 1);
            line-height: 30px;
            width: 100%;
            text-align: center;
            padding-top: 30px;
            margin-bottom: 20px;
        }

        .button_message {
            display: flex;
            width: 100%;
            justify-content: space-around;
            align-items: center;
            height: 40px;
            color: #fff;
            margin-top: 50px;
        }


        .flexcen {
            display: flex;
            justify-content: center;
            align-items: center;
        }
    </style>
</head>

<body>
<div v-cloak id="app">
    <div id="wrap" class="flex-wrap flex-vertical">
        <header>
            <ul>
                <li class="active">
                    <i onclick="back()" class="icon iconfont icon-back"></i>
                    <span>约会</span>
                </li>
            </ul>
        </header>
        <div class="yuehui fixed-header">
            <div class="yuehuiitem">
                <div class="yuehuiiteml">
                    <img class="yuehuiiteml_left" src="../../image/avr.jpg" alt="">
                    <div class="yuehuiiteml_right">
                        <div class="title">娇娇</div>
                        <div class="desc">很高兴认识你，交个朋友？</div>
                    </div>
                </div>
                <div class="yuehuiitemr">10:52</div>
            </div>
            <div class="yuehuiitem">
                <div class="yuehuiiteml">
                    <img class="yuehuiiteml_left" src="../../image/avr.jpg" alt="">
                    <div class="yuehuiiteml_right">
                        <div class="title">娇娇</div>
                        <div class="desc">很高兴认识你，交个朋友？</div>
                    </div>
                </div>
                <div class="yuehuiitemr">10:52</div>
            </div>
            <div class="yuehuiitem">
                <div class="yuehuiiteml">
                    <img class="yuehuiiteml_left" src="../../image/avr.jpg" alt="">
                    <div class="yuehuiiteml_right">
                        <div class="title">娇娇</div>
                        <div class="desc">很高兴认识你，交个朋友？</div>
                    </div>
                </div>
                <div class="yuehuiitemr">10:52</div>
            </div>
        </div>
        <div class="mask" style="display: block">
            <div class="yuehuimessage">
                <i class="icon iconfont icon-close"></i>
                <div class="title">你有一个新的约会机会</div>
                <div class="button_message">
                    <div class="button_no flexcen">
                        不需要
                    </div>
                    <div class="button_yes flexcen">
                        考虑
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
</body>

</html>
<script src="../../aui/js/aui.js"></script>
<script src="../../script/vue2.js"></script>
<script src="../../script/vue-resource.min.js"></script>
<script src="../../script/common.js"></script>
<script>
    var vm = new Vue({
        el: "#app",
        data: {
            about: '<p>我们湖南万源生态农业有限公司</p>'
        },
        mounted: function () {
            var that = this;

            apiready = function () {
                that.getAbout()
            };
        },
        methods: {
            getAbout: function () {
                var that = this;
                showProgress();
                var token = $api.getStorage('userInfo').token
                api.ajax({
                    url: ajaxRoute.about,
                    method: 'post',
                    data: {
                        values: {
                            token: token
                        }
                    }
                }, function (res, err) {
                    console.log(JSON.stringify(res), '这是一个测试')
                    api.hideProgress();
                    if (res.code == 1) {
                        that.about = res.data
                    } else {
                        api.toast({msg: res.msg, location: 'middle'});
                    }
                });
            }
        },
        filters: {
            getTel: function (value) {
                var phone = value
                return phone.substr(0, 3) + "****" + phone.substr(7)
            },
            getCard: function (value) {
                var phone = value
                return phone.substr(0, 5) + "********" + phone.substr(12)
            },
            getchecked: function (e) {
                var checked = ''
                if (e == 0) {
                    checked = '审核中'
                } else {
                    checked = '已审核'
                }
                return checked
            }
        }
    })
</script>
